package com.demo.juc.locks;

/**
 * @Author: shubin_yao
 * @Date: 2022/05/08/16:55
 * @Description:
 */
public class M {

    public synchronized void m1(){
        System.out.println(Thread.currentThread().getId()+ "-------m1");
        m2();
    }

    public synchronized void m2(){
        System.out.println(Thread.currentThread().getId()+ "-------m2");
    }
}
